package tk.leafotto.ssm.dao;

import org.apache.ibatis.annotations.Param;
import tk.leafotto.ssm.beans.AlertInfo;

import java.util.List;

public interface AlertInfoMapper {
    List<AlertInfo> getAlertInfo();
    List<AlertInfo> getAlertNoConfirm();
    List<AlertInfo> selectAlertInfo(int id);

    int putAlertInfo(AlertInfo alertInfo);

    int confirmalert(AlertInfo alertInfo);

    List<AlertInfo> getAlertDetail(@Param("camid") int camid,
                                   @Param("alertTimeStart") Long alertTimeStart,
                                   @Param("alertTimeEnd") Long alertTimeEnd,
                                   @Param("confirmstate") int confirmstate,
                                   @Param("confirmuser") int confirmuser,
                                   @Param("confirmTimeStart") Long confirmTimeStart,
                                   @Param("confirmTimeEnd") Long confirmTimeEnd,
                                   @Param("remarks") String remarks,
                                   @Param("startRow") int startRow,
                                   @Param("limitRow") int limitRow,
                                   @Param("orderBy") String orderBy,
                                   @Param("desc") int desc);
}
